package cn.weiron.fun.infrastructure.utils;

import cn.weiron.fun.infrastructure.constant.LogConstants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LoggerUtils {
    public static <T> Logger Logger(Class<T> clazz) {
        return LoggerFactory.getLogger(clazz);
    }

    /**
     * 打印到指定的文件下
     *
     * @param desc 日志文件名称
     * @return
     */
    public static Logger Logger(String  desc) {
        return LoggerFactory.getLogger(desc);
    }


    /**
     * 获取排产到工厂logger
     * @return
     */
    public static Logger getSMSlog(){
        return Logger(LogConstants.SMS_LOG);
    }
}
